﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ObjectModel
{
	[Table(Name = "projects")]
	public class Project : BaseEntity<Project>
	{
		[Field(Name = "name")]
		public String Name { get; set; }

		[Field(Name = "description")]
		public String Description { get; set; }
		//public List<ProjectVersion> Versions { get; set; }

		[Field(Name = "id_product")]
		public Int32 IdProduct { get; set; }

		[Field(Name = "id_product", Insertable = false)]
		public Product Product { get; set; }

		[Field(Name = "begin_date")]
		public DateTime BeginDate { get; set; }

		[Field(Name = "end_date")]
		public DateTime EndDate { get; set; }
		//public List<Project> Projects { get; set; }

		[Field(Name = "estimated_begin")]
		public DateTime EstimatedBegin { get; set; }

		[Field(Name = "estimated_end")]
		public DateTime EstimatedEnd { get; set; }
	}
}
